﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Sales
{
    [NHibernateEntity(Table = "OpportunitySteps")]
    public class OpportunityStep
    {
        public OpportunityStep() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [Property]
        public virtual string Code { get; set; }

        [Property]
        public virtual int StepOrder { get; set; }

        [BelongsTo(Column = "ID_Parent_OpportunityStep")]
        public virtual OpportunityStep Parent { get; set; }
    }
}
